package com.atom.common.mb.dao.gl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.atom.common.dao.AvensCommonDao;
import com.atom.common.mb.entity.gl.GcxxDO;

@Repository
public class GcxxDao extends AvensCommonDao<GcxxDO> {
	public GcxxDO getLastById(String id){
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("id", id);
		map.put("isNew", "1");
		List<GcxxDO> list =  super.findByProperties(map);
		if(list!=null&&list.size()>0)
			return list.get(0);
		else 
			return null;
	}
}
